#!/bin/sh

set -e

echo "Creating docker network hyperf_local_net if not exists..."
docker network create hyperf_local_net >/dev/null 2>&1 || true

echo "Starting hyperf_data..."
docker compose -f "$(pwd)/hyperf_data/docker-compose.yml" up -d

echo "Starting hyperf_notice (includes gateway functionality)..."
docker compose -f "$(pwd)/hyperf_notice/docker-compose.yml" up -d

echo "All services started."
echo "Gateway is available at: http://localhost:8080/gateway"

